//
//  JFNetBaseInstance.h
//  JFBase
//
//  Created by Alan Wang on 2018/8/17.
//  Copyright © 2018年 Alan Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JFRequestVo.h"
#import "JFResultVo.h"

//默认的超时时间
#define THtimeoutInterval   60

@protocol JFServiceInstanceDelegate <NSObject>
@required

/**
 *  处理请求
 *
 *  @param reqParamVo 请求对象
 */
-(void)invoke:(JFRequestVo *)reqParamVo callBack:(JFCallBack)callback;

/**
 *
 *  清除请求对象
 *
 *  @param flowNo 流水号
 */
-(void)clearRequest:(NSString *)flowNo baseUri:(NSString*)url;

/**
 *
 *  清除所有的请求
 *
 */
-(void)clearAllRequest;

@end
@interface JFNetBaseInstance : NSObject<JFServiceInstanceDelegate>
+(instancetype)shareInstance;
@end
